Skip to content

Conversation

@limseohyeon
Copy link
Collaborator

@limseohyeon limseohyeon commented May 15, 2025

#️⃣ 연관된 이슈

✅ 체크리스트

  • 🔀 PR 제목의 형식 맞추기
  • 💡 이슈 등록
  • 🏷️ 라벨 등록
  • 🧹 불필요한 코드 제거
  • 🧪 로컬 테스트 완료
  • 🏗️ 빌드 성공
  • 💯 테스트 통과

📝 작업 내용

  • 기존 AirQualityService가 가진 과도한 책임(요청, 캐시, 분기 처리 등)을 분리
  • 서울/비서울 지역 전략 클래스를 분리하고 AirQualityStrategy 인터페이스를 통해 다형성 적용
  • Redis 캐시 로직을 AirQualityCacheService로 분리하여 역할 명확화

📸 스크린샷 (UI 변경 시 필수)

👀 리뷰어 가이드라인

여기에 작성

@limseohyeon limseohyeon added this to the 미세먼지 milestone May 15, 2025
@limseohyeon limseohyeon self-assigned this May 15, 2025
@sonarqubecloud
Copy link

@github-actions
Copy link

Test Results

 81 files   81 suites   4m 53s ⏱️
286 tests 286 ✅ 0 💤 0 ❌
287 runs  287 ✅ 0 💤 0 ❌

Results for commit ca34278.

@Component
@RequiredArgsConstructor
@Qualifier("regionStrategy")
public class RegionAirQualityService implements AirQualityStrategy {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AirQualityStrategy의 구현체 이름으로는 SeoulAirQualityStrategyRegionAirQualityStrategy가 조금 더 알기 쉽고 명확할 것 같습니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 그러네요!!! 반영해서 다시 올리겠습니다!

@limseohyeon limseohyeon linked an issue May 22, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

미세먼지 api 리팩터링

3 participants